package org.ydeity.lucene.exception;

import java.util.Map;

public class LuceneException extends RuntimeException {

    private Map<String, String> failedDocuments;

    public LuceneException(String message) {
        super(message);
    }

    public LuceneException(String message, Throwable cause) {
        super(message, cause);
    }

    public LuceneException(String message, Throwable cause, Map<String, String> failedDocuments) {
        super(message, cause);
        this.failedDocuments = failedDocuments;
    }

    public LuceneException(String message, Map<String, String> failedDocuments) {
        super(message);
        this.failedDocuments = failedDocuments;
    }

    public Map<String, String> getFailedDocuments() {
        return failedDocuments;
    }
}
